/****************************************************************
 * Fulguro
 * Copyright (C) 2004 Christophe Clienti
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 ***************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __RT_VIEW_H
#define __RT_VIEW_H
  
#include <flgrCoreDll.h>
#include <flgrCoreErrors.h>
#include <flgrCoreTypes.h>
#include <flgrCoreData.h>
#include <SDL/SDL.h>

  /*! 
   * Realtime window display structure
   */  
  typedef struct {
    SDL_Surface *surface;     /*!Framebuffer structure of window display*/
    SDL_Color palette[256];   /*!Color Palette*/
    int size_xfactor;         /*!Number of image displayed horizontaly in the window*/
    int size_yfactor;         /*!Number of image displayed verticaly in the window*/
    int bps;                  /*!Number of bits per pixels*/
  }FLGR_RtView2D;

  EXPORT_LIB FLGR_RtView2D *flgr2d_rtview_create(FLGR_Data2D *data, int size_yfactor, int size_xfactor);
  EXPORT_LIB FLGR_Ret flgr2d_rtview_refresh(FLGR_RtView2D *window, FLGR_Data2D *data, int size_ypos, int size_xpos);
  EXPORT_LIB FLGR_Ret flgr2d_rtview_set_palette(FLGR_RtView2D *screen, int *rTable, int *gTable, int *bTable);
  EXPORT_LIB void flgr2d_rtview_destroy(FLGR_RtView2D *screen);


#endif

#ifdef __cplusplus
}
#endif
